    if grep -q foo <<<"$string"; then
        echo "It's there"
    fi